/**
  ******************************************************************************
  * @file   : algo.h
  * @author : 测试1组（houtiezhu）
  * @version: v0
  * @date   : 2019.07.09
  * @brief  : 
  *           
  * Copyright (C) 2019  Hangzhou SDIC Microelectronics Co., Ltd
  ******************************************************************************
**/

#ifndef ALGO_H
#define ALGO_H

/*系统头文件包含*/
//#include "YinXing.h"

extern uint16  FilterRam[24];
extern uint16  PriOscilloSignal; 
extern uint8   DiffSignal;
extern uint16  UparmScaleValue; 
extern uint8   FuzzyMaxBackup;
extern uint16  UparmBaseValue;
extern uint8   PulseCount;         
extern uint8   HRPulseCount; 
extern uint8   PulseRate; 
extern	uint16  Countw; 
extern uint16  PriPressureV;
extern  uint8   MeanIndex; 
extern  uint8   ThresholdValue; 
extern  uint8   MaxDiffSignal; 
extern uint8   HighPeakValue; 
extern uint8   LowPeakValue; 

extern uint8   MaxSlopeValue; 
extern uint16  PriMarkCount; 
extern uint8   NOMORE1; 
extern uint16  MarkCount;
extern uint8   IntervalCount; 
extern uint8   RefindPulseCount;
extern uint16  SumInterval;
extern	uint8  PP;                //P is a count Ram 
extern	uint16  AmpValue[5]; 
extern	uint8   NOMORE3; 
extern	uint16  DetermineValueDia;
extern	uint8   MinInterval; 
extern	uint8   MAPValue; 
extern	uint16  HRPulseCountSUM;
extern	uint8   FuzzyMaxValue;


void algorithminit(void);
void firfilter2(void);
void firfilter(void);
void algorithm(void);
void fuzzydetect(void);
void PADDetect(void);
void CalScale(void);
#endif 



/************************ (C) COPYRIGHT Hangzhou SDIC Microelectronics *****END OF FILE****/